﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using NopSolutions.NopCommerce.BusinessLogic;

namespace brevis.Nop.SDK.Checker
{
    public class QueryStringOrderGuid : IChecker
    {
        /// <summary>
        ///  Checks if query string parameter guid is provided
        /// </summary>
        /// <param name="param">NopContext and HttpContext as object-array</param>
        /// <returns></returns>
        public void Execute(object[] param)
        {
            // TODO: implement logic
            //var nopcontext = (NopContext)param[0];
            var httpcontext = (HttpContext)param[1];
        }

        /// <summary>
        ///  Checks if query string parameter guid is provided
        /// </summary>
        /// <returns></returns>
        public void Execute()
        {
            throw new Exception(
                "checker needs some parameters to check if order guid is in querystring.");
        }
    }
}
